const express = require('express');
const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/user', { useNewUrlParser: true, useUnifiedTopology: true })
const app = express();
const router = require('./routes/index')
app.use(express.json())
app.use('/user', router)
app.listen(3000, () => {
    console.log('App is running ------')
})